<?php

namespace Mediacosmos\ConsultationBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Mark
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Mediacosmos\ConsultationBundle\Entity\MarkRepository")
 */
class Mark
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="value", type="integer")
     */
    private $value;
    
   
    /**
     * @ORM\ManyToOne(targetEntity="Mediacosmos\ConsultationBundle\Entity\Oeuvre")
     * @ORM\JoinColumn(nullable=false)
     */
    private $oeuvre;

    /**
     * @ORM\ManyToOne(targetEntity="Mediacosmos\UserBundle\Entity\Member")
     * @ORM\JoinColumn(nullable=false)
     */
    private $user;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set value
     *
     * @param integer $value
     * @return Note
     */
    public function setValue($value)
    {
        $this->value = $value;

        return $this;
    }

    /**
     * Get value
     *
     * @return integer 
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Set oeuvre
     *
     * @param \Mediacosmos\ConsultationBundle\Entity\Oeuvre $oeuvre
     * @return Mark
     */
    public function setOeuvre(\Mediacosmos\ConsultationBundle\Entity\Oeuvre $oeuvre)
    {
        $this->oeuvre = $oeuvre;

        return $this;
    }

    /**
     * Get oeuvre
     *
     * @return \Mediacosmos\ConsultationBundle\Entity\Oeuvre 
     */
    public function getOeuvre()
    {
        return $this->oeuvre;
    }

    /**
     * Set user
     *
     * @param \Mediacosmos\UserBundle\Entity\Member $user
     * @return Mark
     */
    public function setUser(\Mediacosmos\UserBundle\Entity\Member $user)
    {
        $this->user = $user;

        return $this;
    }

    /**
     * Get user
     *
     * @return \Mediacosmos\UserBundle\Entity\Member 
     */
    public function getUser()
    {
        return $this->user;
    }
}
